home *** CD-ROM | disk | FTP | other *** search
- Path: mundil.cs.mu.OZ.AU!simc
- From: simc@mundil.cs.mu.OZ.AU (Falchion)
- Newsgroups: comp.lang.c
- Subject: PUBLIC / PRIVATE
- Date: 17 Apr 1996 20:27:57 GMT
- Organization: Comp Sci, University of Melbourne
- Message-ID: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
- NNTP-Posting-Host: mundil.cs.mu.oz.au
-
- I'm analysing some C source code and I've
- come across PUBLIC and PRIVATE keywords
-
- eg PUBLIC char * app_name = "Lynx";
-
- PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- s, int, l) { fwrite(s, 1, l, me->fp) }
-
-
- I though C didn't have PUBLIC or PRIVATE ?
- It definitely doesn't look like C++ source code - it looks like
- C code with PUBLIC and PRIVATE keywords scattered everywhere.
-
- 2nd question:
- PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- s, int, l) { fwrite(s, 1, l, me->fp) }
-
- What is the ARGS3 ?
- I'm accustomed to
- return_type function_name(args) { ... }
-
-
- -- Simon
- simc@mundil.cs.mu.oz.au
-